import { YmUpload } from 'ym-design';

function CustomerRequestOtherUse() {
  function handleRequest(file: any) {
    console.log('--handleSuccess--file--:', file);
  }

  return (
    <YmUpload
      maxCount={1}
      multiple={false}
      accept=".xlsx"
      acceptExt="xlsx"
      type="drag"
      listType="info-list"
      showUploadList={false}
      // beforeUpload={}
      customRequest={({ file, onSuccess }) => {
        onSuccess?.(null);
        handleRequest(file);
      }}
    ></YmUpload>
  );
}

export default CustomerRequestOtherUse;
